package ex37;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) throws IOException {
		
		InputStreamReader it = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(it);
		
		double number;
		int[][] intervals = {
			{0, 25}, {25, 50}, {50, 75}, {75, 100}
		};
		
		number = Double.parseDouble(in.readLine());
		
		for (int i = 0; i < intervals.length; i++) {
			if (number >= 0 && number <= 100) {
				if (number >= intervals[i][0] && number <= intervals[i][1]) {
					System.out.printf("Intervalo (%d,%d]\n", intervals[i][0], intervals[i][1]);
					break;
				}
			} else {
				System.out.printf("Fora de intervalo\n");
				break;
			}
		}
		
	}

}
